<template>
  <div class="box">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="uid" label="用户编号" width="180">
         
      </el-table-column>
             
      <el-table-column prop="uname" label="姓名" width="180">
           
      </el-table-column>
             
      <el-table-column prop="nickname" label="昵称"> </el-table-column>       
      <el-table-column prop="phone" label="联系方式"> </el-table-column>        
      <el-table-column label="性别">
        <template slot-scope="scope">
          <span>{{ scope.row.gender == 0 ? "男" : "女" }}</span>
        </template>
      </el-table-column>
             
      <el-table-column prop="idcard" label="身份证号"> </el-table-column>      
        <el-table-column prop="avator" label="头像"> </el-table-column>        
      <el-table-column prop="city" label="城市"> </el-table-column>        
      <el-table-column prop="address" label="区域"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
// import { mapState } from "@/store";
export default {
  computed: {
    // ...mapState(["userIifo"]),
  },
  mounted() {
    let a = this.$store.dispatch("getuserInfoActions");
    this.axios.get("/my/selectuser").then((res) => {
      this.tableData = res.data.results;
    });
  },
  data() {
    return {
      tableData: [],
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
}
.el-table .warning-row {
  background: oldlace;
}

.el-table .success-row {
  background: #f0f9eb;
}
</style>